#ifndef THESAURUSCOMPOSERWIDGET_H
#define THESAURUSCOMPOSERWIDGET_H

#include <QWidget>
#include <QSet>
#include <QMutex>

class DictionaryLookup;

namespace Ui {
	class ThesaurusComposerWidget;
}

class ThesaurusComposerWidget : public QWidget
{
	Q_OBJECT

public:
	explicit							ThesaurusComposerWidget(QWidget *parent = 0);
										~ThesaurusComposerWidget();

private:
	Ui::ThesaurusComposerWidget			*ui;

	QSet<DictionaryLookup*>				m_lookups;
	QMutex								m_lock;

private slots:
	void								on_textEdit_selectionChanged();
	void								gotDefinition(DictionaryLookup*);
	void								gotSynonyms(DictionaryLookup*);
};

#endif // THESAURUSCOMPOSERWIDGET_H
